<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ include file="../general/header.jsp" %>

	<h3>Resolver Conflicto: <c:out value="${conflictedProfile.user.name}"/> <c:out value="${conflictedProfile.user.lastName}"/></h3>
	<div class="menuacciones">
		<a class="boton volver color" href="../data/matchedLinkedInResults">Volver</a>
	</div>	
	<div class="featurebox_center">
		<ul class="usuarios">
			<c:choose>
				<c:when test="${empty matchedLinkedInProfiles}">
					<h2>No hay conflictos por resolver.</h2>
				</c:when>
				<c:otherwise>
					<c:forEach var="matchedprofile" items="${matchedLinkedInProfiles}">
						<li class="usuario usuarioconflict">
							<!-- matchedprofile.id es el linkedinId que te da la API  -->
								<img class="foto" width="120" height="120" src="${matchedprofile.pictureUrl}" />
								<div class="info">
									<div class="item">
										<span><strong><c:out value="${matchedprofile.firstName}" /> <c:out value="${matchedprofile.lastName}" /></strong></span>
									</div>
									<!--
									<c:if test="${!empty matchedprofile.dateOfBirth }">
										<div class="item">
											<label>Fecha de Nac.:</label>
											<span><c:out value="${matchedprofile.dateOfBirth.day}/${matchedprofile.dateOfBirth.month}/${matchedprofile.dateOfBirth.year}" /></span>
										</div>
									</c:if>
									-->
									<div class="item">
										<span><c:out value="${matchedprofile.headline}"></c:out></span>
									</div>
									<div class="item">
										<span><c:out value="${matchedprofile.location.name}"></c:out></span>
									</div>
									<div class="item">
										<label>Estudios:</label>
										<span><c:out value="${matchedprofile.educations.educationList[0].schoolName}"></c:out></span>
									</div>
									<c:if test="${!empty matchedprofile.publicProfileUrl}">
										<span class="verperfillinkedin"><a target="_blank" href="${matchedprofile.publicProfileUrl}">Ver Perfil</a></span>
									</c:if>
									<c:if test="${empty matchedprofile.publicProfileUrl}">
										<span class="verperfillinkedin">Sin perfil p&uacute;blico</span>
									</c:if>
									<span class="verperfil"><a href="assignLinkedInProfile?userid=${conflictedProfile.user.id}&linkedInId=${matchedprofile.id}">Asignar</a></span>
								</div>
								<div class="clear"></div>
						</li>
					</c:forEach>
				</c:otherwise>
			</c:choose>
			<div class="clear"></div>
		</ul> 
		<div class="clear"></div>
	</div>
<%@ include file="../general/footer.jsp" %>